<div class="bjui-pageContent">
    <div class="bjui-row col-3">
        <form action="/admin/personnel/train/plan-add" data-toggle="ajaxform" data-options="{
            closeCurrent: true,
            okAfterCallback: refreshDataGrid,
            {{--beforeSubmit: checkAddPlanFormData,--}}
        }">
            {{ csrf_field() }}
            <label class="row-label">名&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称:</label>
            <div class="row-input required">
                <input type="text" data-rule="required" id="name" name="name">
            </div>
            {{--<br>--}}
            {{--<label class="row-label">选择行业:</label>--}}
            {{--<div class="row-input required">--}}
                {{--<select data-toggle="selectpicker" data-width="200" id="train_industry_id" name="train_industry_id" data-rule="required">--}}
                    {{--<option value="1">技术</option>--}}
                    {{--<option value="2">销售</option>--}}
                    {{--<option value="3">教师</option>--}}
                {{--</select>--}}
            {{--</div>--}}
            <br>
            <label class="row-label">报名开始时间:</label>
            <div class="row-input required">
                <input type="text" data-toggle="datepicker" placeholder="选择开始时间" name="start_time" data-rule="required" readonly>
            </div>
            <br>
            <label class="row-label">报名结束时间:</label>
            <div class="row-input required">
                <input type="text" data-toggle="datepicker" placeholder="选择开始时间" name="end_time" data-rule="required" readonly>
            </div>
            <br>
            <label class="row-label">培训费用:</label>
            <div class="row-input required">
                <input type="number"  data-rule="required" id="money" name="money">
            </div>
            <br>
            <label class="row-label">参与人数:</label>
            <div class="row-input required">
                <input type="number"  data-rule="required" name="number" id="number">
            </div>
            <br>
            <label class="row-label">是否显示:</label>
            <div class="row-input required">
                <input type="radio" name="display" id="display" value="1" data-toggle="icheck" data-label="是" data-rule="required" checked>
                <input type="radio" name="display" id="display" value="0" data-toggle="icheck" data-label="否" data-rule="required">
            </div>
            <br>
            <label class="row-label">上次主图:</label>
            <div class="row-input required">
                <input type="file" data-name="main_image_url" data-toggle="webuploader" data-options="
                {
                    pick: {label: '点击选择图片'},
                    server: '/admin/personnel/train/plan-image-upload',
                    fileNumLimit: 1,
                    formData: {dir:'custompic',_token:'{{csrf_token()}}',},
                    required: true,
                    uploaded: '',
                    basePath: '',
                    accept: {
                        title: '图片',
                        extensions: 'jpg,png',
                        mimeTypes: '.jpg,.png'
                    }
                }">
            </div>
        </form>

    </div>

</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close" data-icon="close">取消</button>
        </li>
        <li>
            <button type="submit" class="btn-default" data-icon="save">保存</button>
        </li>
    </ul>
</div>
<script type="text/javascript">
    function refreshTrainList(){
        $('#company-address-list').datagrid('refresh', true);
    }

</script>